<p>If a label is declared but not used in the program, it can be considered as dead code and should therefore be removed.</p>
<p>This will improve maintainability as developers will not wonder what this label is used for.</p>

<h2>Noncompliant Code Example</h2>
<pre>
void foo() {
  outer: //label is not used.
  for(int i = 0; i<10; i++) {
    break;
  }
}
</pre>

<h2>Compliant Solution</h2>
<pre>
void foo() {
  for(int i = 0; i<10; i++) {
    break;
  }
}
</pre>

<h2>See</h2>
<ul>
  <li>MISRA C:2012, 2.6 - A function should not contain unused label declarations</li>
</ul>
